package com.itcs.app.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.itcs.app.service.QueryRechargeService;
import com.itcs.trading.mapper.UserRechangeOpHisMapper;

/**
 * 充值记录查询
 */
@Service
public class QueryRechargeServiceImpl implements QueryRechargeService {
	@Autowired
	private UserRechangeOpHisMapper userRechangeOpHis;

	// 查询当前页数下面的记录
	@Override
	public List<Map<String, Object>> qryList(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		List<Map<String, Object>> qryRechargeList = userRechangeOpHis.qryRechareList(paramMap);
		return qryRechargeList;
	}

	// 查询用户的所有充值记录条数
	@Override
	public int getCount(Long param) {
		// TODO Auto-generated method stub
		int rechargeCount = userRechangeOpHis.qryCount(param);
		return rechargeCount;
	}

}
